#ifndef _HOME_H_
#define _HOME_H_

#include "ti_msp_dl_config.h"
#include "page_manager.h"

#define screen_center_x (LCD_W/2)//屏幕中心X = 屏幕x/2
#define screen_center_y (LCD_H/2)//屏幕中心Y = 屏幕y/2

extern PageDescriptor home_page;  // 添加这行声明

void home_page_display(void);                //绘制首页静态UI
void ui_home_page_select(int mode);     //绘制首页选择框


void ui_select_page_show(unsigned char page);//根据选择确定显示哪一个页面
void ui_parameter_select_box_bold(int mode); //参数选择框加粗，即选中框

uint16_t draw_speed_curve(int window_start_x,int window_start_y,int window_w,int window_h,int curve_color,int background_color,short int rawValue);

void home_page_handler(PageEvent event, PageParam *param); //页面事件处理函数

#endif